# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libassuan
pkgver=2.5.6
pkgrel=1
pkgdesc="IPC library used by some GnuPG related software"
url="https://www.gnupg.org/software/libassuan/index.html"
arch="all"
license="LGPL-2.1-or-later"
makedepends="libgpg-error-dev"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://www.gnupg.org/ftp/gcrypt/libassuan/libassuan-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
dcca942d222a2c226a7e34ba7988ee0c3c55bd6032166eb472caf2053db89aeeea7a40e93d8c2887c7ee73c5f838e8b0725e8cfb595accc1606646559362f7ee  libassuan-2.5.6.tar.bz2
"
